//
//  WCBPushToolByWsj.m
//  WC
//
//  Created by wsj2015 on 16/3/2.
//  Copyright © 2016年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCBPushToolByWsj.h"

@implementation WCBPushToolByWsj


+ (void)saveNewBadge:(NSInteger)badage{

    [[NSUserDefaults standardUserDefaults] setInteger:badage forKey:BPushBadge];
    [[NSUserDefaults standardUserDefaults] synchronize];
    
    [[NSNotificationCenter defaultCenter] postNotificationName:BPushBadageChangedNotification object:nil];
    
}

+ (NSInteger)getLatestBadge{
    return [[NSUserDefaults standardUserDefaults] integerForKey:BPushBadge];
}



@end
